<li class="dropdown active">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
       aria-expanded="false">Task <i class="fa fa-hand-o-right"></i> {{ request.login_user.project.name }}  <i class="fa fa-hand-o-left"></i> <span class="caret"></span></a>
    <ul class="dropdown-menu">
        <li><a href="#">我创建的</a></li>
        {% for project in create %}
            <li><a href="{% url 'dashboard' project_id=project.id%}">{{ project.name }}</a></li>
        {% endfor %}
        <li role="separator" class="divider"></li>
        <li><a href="#">我参与的</a></li>
        {% for item in join %}
            <li><a href="{% url 'dashboard' project_id=item.project.id %}">{{ item.project.name }}</a></li>
        {% endfor %}
        <li role="separator" class="divider"></li>
        <li><a href="{% url 'project_list' %}">全部项目</a></li>
    </ul>
</li>





